package com.yongan.warehouse.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yongan.warehouse.entity.Warehouse;

public interface WarehouseDao {

	
	Warehouse queryById(String warehouseId);
	
	List<Warehouse> queryAll(@Param("offset")int offset,@Param("limit")int limit);
	
	int insertWarehouse(Warehouse warehouse);
	
	int deleteWarehouse(String warehouseId);
	
	int updateWarehouse(Warehouse warehouse);
	
	int queryCount();
	
	List<Warehouse> queryAllTree();

}
